	//======================================>>>manager proto type
	var MNG = {
		fncRtnfunc : function(mode, flag) {
			if ( mode == "reg" )
				MNG.fncReg("/mng/"+flag+"_reg.html", flag);
			if ( mode == "mod" )
				MNG.fncMod("/mng/"+flag+"_mod.html", flag);
			if ( mode == "del" )
				MNG.fncDel(flag, "d", "json", "/mng/mng_do.html", flag);
			if ( mode == "rst" )
				MNG.fncRst("/mng/"+flag+".html", flag);
			
			if ( mode == "print" )
				MNG.fncPrint();
			if ( mode == "excel" )
				MNG.fncExcel();
			
		},
		fncExcel : function() {

			Obj = MNG.fncGetPrintExcelObj();

			var header = MNG.fncRtnHeader();
		    var body	= MNG.fncRtnBody(Obj);
			var xlsList = header+body;
	
			$('#excelList').val(xlsList);

			//alert($('#excelList').val());
			
			$('#xlsFrm').submit();



			$('#excelList').val('');
		},
		fncPrint : function() {
			Obj = MNG.fncGetPrintExcelObj();

			var W = 720;         
		    var H = 600;
		    //var features = "menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,width=" + W + ",height=" + H + ",left=0,top=0";
		    var features = "menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,left=0,top=0";
		    var PrintPage = window.open("about:blank",Obj.id,features); 
		    PrintPage.document.open(); 

		    var header = MNG.fncRtnHeader();
		    var body	= MNG.fncRtnBody(Obj);

		    PrintPage.document.write(header+body);
		    PrintPage.document.close(); 
		    //PrintPage.document.title = document.domain;
		    PrintPage.print(PrintPage.location.reload());

		},
		fncGetPrintExcelObj : function() {
			Obj = $("#div_erpTable");
			Obj.html('');
			Obj.append($("table:#printtable").clone());

			//tr 오브젝트를 찾아서 input이 있으면 해당 elemnet를 삭제한다.
			TrObj = Obj.contents().find("tr");
			TrObj.each(function() {
				if ( $(this).find("th").find("input]") ){
					//$(this).find("p").hide();
				}
				if ( $(this).find("td").find("input") ){
					//$(this).find("td:eq(0)").hide();
				}
			});
			return Obj;
		},
		fncRtnBody : function(obj) {
			ListTitleObj = $(".tableTitle");
		    var body	= "<body>";
		    body	   += '<p class="tableTitle">'+$("#printtitle").val()+'</p>';
		    body	   += obj.html();
		    body	   += "</body></html>";
		    return body;
		},
		fncRtnHeader : function() {
		    var  header = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">';
		    header 	   += '<html xmlns="http://www.w3.org/1999/xhtml">';
		    header 	   += '<head>';
		    header 	   += '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />';
		    header 	   += '<title>:: 농협전북지부 ERP시스템 ::</title>';
		    header 	   += '<link href="/css/layout.css" type="text/css" rel="stylesheet" />';
		    header 	   += '<style>';
		    header 	   += 'table { border-color: #000000; border-style: solid; }'; 
		    header 	   += 'td { border-color: #000000; border-style: solid; }';
		    header 	   += '</style>';
		    header 	   += '</head>';
		    return header;
		},
		fncDummy : function(param1, param1) {
		}
	};